Skip to content

Conversation

@naimadswdn
Copy link
Contributor

Description

  • Add validateClusterBalance() to verify slot distribution
  • Implement retry logic for RebalanceRedisCluster functions
  • Dynamically select healthy leader node for operations
  • Validate cluster state after rebalance operations
  • Return structured errors with context

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Tests have been added/modified and all tests pass.
  • Functionality/bugs have been confirmed to be unchanged or fixed.
  • I have performed a self-review of my own code.
  • Documentation has been updated or added where necessary.

Additional Context

Motivated by frequent E2E tests failures related to Redis Cluster setup.

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 0% with 120 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@9ba8db7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/k8sutils/cluster-scaling.go 0.00% 120 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1578   +/-   ##
=======================================
  Coverage        ?   30.82%           
=======================================
  Files           ?       78           
  Lines           ?     6069           
  Branches        ?        0           
=======================================
  Hits            ?     1871           
  Misses          ?     4005           
  Partials        ?      193           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@naimadswdn naimadswdn force-pushed the feat/improve-redis-operations branch 2 times, most recently from d06208c to 5cf71c8 Compare November 5, 2025 06:29
- Add validateClusterBalance() to verify slot distribution
- Implement retry logic for RebalanceRedisCluster functions
- Dynamically select healthy leader node for operations
- Validate cluster state after rebalance operations
- Return structured errors with context

Signed-off-by: Damian Seredyn <[email protected]>
@drivebyer drivebyer force-pushed the feat/improve-redis-operations branch from 5cf71c8 to 2ba8ab2 Compare November 7, 2025 13:39
@naimadswdn
Copy link
Contributor Author

@drivebyer how about merge? 💯

@drivebyer
Copy link
Collaborator

@drivebyer how about merge? 💯

IMO, this PR doesn’t fix an obviously existing issue and also introduces code complexity. We should hold off on it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants